﻿@model BussinessLogic.Models.Administrator.UserStudyDetails
@{
    ViewBag.Title = "UserStudyDetails";
}
<fieldset>
    <legend>@Model.StudyName - @Model.UserName</legend>
    <br />
    <table>
    <tr>
        <th >
            Order
        </th>
        <th style="text-align:center">
            Date
        </th>
    </tr>
        @foreach (var item in Model.Sessions)
        {
            <tr>
                <td style="text-align:center">
                    @Html.DisplayFor(modelItem => item.Crt)
                </td>

                <td>
                    @Html.ActionLink(item.Date.ToLongDateString(), "UserSessionDetails", new { id = item.ID })
                </td>
            </tr>
        }
    </table>
</fieldset>
<p>
    @Html.ActionLink("Back to user info", "UserDetails", new { id = Request["uid"] })
</p>
